package com.dly.hope.dao;

import com.dly.hope.modle.QPermissions;
import com.dly.hope.type.DataStatusEnum;
import com.querydsl.core.types.dsl.BooleanExpression;
import com.querydsl.core.types.dsl.NumberPath;
import com.querydsl.jpa.impl.JPAQueryFactory;
import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.stereotype.Indexed;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;

/**
 * @author linyu.dai
 * @project myserve
 * @description
 * @creat 2022/11/1 16:28:56
 */
@Repository
public class BaseDao  {

    @Resource
    public JPAQueryFactory queryFactory;

    public BooleanExpression efficient(NumberPath<Integer> dataStatus){
        return dataStatus.eq(DataStatusEnum.EFFICIENT.getCode());
    }

}
